<?php

namespace api\modules\v1\controllers;

use yii\rest\ActiveController;
use yii\myhelper\Response;

class GoodsController extends ActiveController
{
    public $modelClass = 'api\models\Goods';

    // public function actions() {  
    //     $actions = parent::actions();  
    //     // 禁用""index,delete" 和 "create" 操作  
    //     unset($actions['index'],$actions['delete'], $actions['create']);  
          
    //     return $actions;  
  
    // }

    // public function actionIndex()  
    // {  
    //     $modelClass = $this->modelClass;  
    //     Response::show('201','获取失败','缺少参数code');
    // }   

    // public function actionCreate(){
    // 	return "post";
    // }

    // public function actionDelete(){
    //     return "delete";
    // }
}